package com.poetry.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.poetry.domain.dto.CategoryDTO;
import com.poetry.domain.po.Category;
import com.poetry.exception.R;

import java.util.List;

public interface ICategoryService extends IService<Category> {
    R<String> updateProperties(CategoryDTO categoryDTO);

    R<Category> addChildCategory(Integer parentId,Integer childId);

    R<String> deleteCategory(Integer id);

    R<List<Category>> getCategoryTree();
}
